<?php



class FisicaMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.FisicaMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('fisica');
		$tMap->setPhpName('Fisica');

		$tMap->setUseIdGenerator(true);

		$tMap->setPrimaryKeyMethodInfo('fisica_SEQ');

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addForeignKey('NUMHISTORIA', 'Numhistoria', 'int', CreoleTypes::INTEGER, 'historia', 'NUMHISTORIA', true, null);

		$tMap->addColumn('TIPO', 'Tipo', 'boolean', CreoleTypes::BOOLEAN, false, null);

		$tMap->addColumn('NOREAL', 'Noreal', 'boolean', CreoleTypes::BOOLEAN, false, null);

	} 
} 